package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.UUID;

@Data
public class ContractDetails {
    //id
   private Long id;

   //所属合同
   private String contract_id = UUID.randomUUID().toString().substring(0,6).replaceAll("-","");;

   //付款时间
   @DateTimeFormat(pattern="yyyy-MM-dd")
   @JsonFormat(
           pattern = "yyyy-MM-dd",
           timezone = "GMT+8"
   )
   private Date payTime =  new Date();

   //付款金额：自客户合同项目成功履行后，开始计时1年
   private Long money;

   //所占比例
   private String scales;

   //是否付款
   private Long isPayment;

}
